<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:c="http://xmlns.jcp.org/jsf/composite"
	xmlns:p="http://primefaces.org/ui">

<ui:decorate template="/jsp/WEB/pageLayout.xhtml">
	<ui:define name="centro">

		<h:form>

			<p:growl id="msgs" showDetail="true" />
			<p:panel id="Controle" header="Controle de versão">
			<h:outputLabel value="Atualizar dados de controle de versão" />

				<h:panelGrid id="id" columns="7" value="#{GerenVersionBean.version}"
					style="margin-top:6px" rowIndexVar="rowIndex">

					<h:outputLabel value="Versão Lua : " />
					<p:inputText value="#{GerenVersionBean.version.versaoLua}" />

					<h:outputLabel value="Versão Navs : " style="margin-left:10px" />
					<p:inputText value="#{GerenVersionBean.version.versaoNavs}" />
				</h:panelGrid>
				
				<h:panelGrid id="id2" columns="7"
					value="#{GerenVersionBean.version}" style="margin-top:5px"
					rowIndexVar="rowIndex">
					<h:outputLabel value="Versão OS : " style="margin-left:4px" />
					<p:inputText value="#{GerenVersionBean.version.versaoOs}" />

					<h:outputLabel value="Versão EOS : " style="margin-left:13px" />
					<p:inputText value="#{GerenVersionBean.version.versaoEos}" />


					<p:commandButton id="Update" value="Atualizar" update="@all" style="margin-left:10px"
						ajax="false" title="Atualizar dados de controle de versão"
						actionListener="#{GerenVersionBean.update}" />
				</h:panelGrid>
			</p:panel>
		</h:form>
	</ui:define>
</ui:decorate>

</html>
